package com.his.his_system.controller;

import com.his.his_system.common.util.ResultAdvice;
import com.his.his_system.service.DzmHisHospitalDoctorRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/his/sys/hosp_doctor/")
@RestController
@ResponseBody
public class HospitalDoctorController {

    @Autowired
    private DzmHisHospitalDoctorRelationService hdrService;

    @GetMapping("list")
    public ResultAdvice list(){
        return ResultAdvice.success(hdrService.list());
    }


}
